CC=gcc
CFLAGS=-Os -Wall

nrg4iso: main.o iso9660.o nrg.o endian.o
	$(CC) $(CFLAGS) -o $@ $> $^

main.o: main.c iso9660.h nrg.h globals.h

iso9660.o: iso9660.c iso9660.h globals.h

nrg.o: nrg.c nrg.h nrg_chunks.h iso9660.h globals.h

endian.o: endian.c endian.h globals.h

clean:
	rm -v *.o nrg4iso
